#!/bin/sh
#pingall.sh
#grab /etc/hosts and ping each address

cat /etc/hosts | grep -v '^#' | while read LINE
do
	ADDR=`echo $LINE | awk '{print $1}'`
	echo ++++++++
	echo $ADDR
	echo ++++++++

	for MACHINE in $ADDR
		do
			ping -c1  $MACHINE
		done
done
			
